﻿@model Kooboo.CMS.Content.Models.MediaContent
@{
    ViewBag.Title = "Edit image".Localize();
    Layout = "~/Views/Shared/Blank.cshtml";
}

@section ScriptCSS{
    <link href="@Html.Raw(Url.Content("~/Styles/jQuery.JCrop/jquery.Jcrop.css"))" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="@Html.Raw(Url.Content("~/Scripts/jquery.Jcrop.js"))"></script>
}
@section Panel{
    <ul class="panel">
        <li><a data-ajaxform="metadataForm">@Html.IconImage("save")@("Save".Localize())</a></li>
        @foreach (var group in Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButtons.GetToolbarButtons(ViewContext.RequestContext))
        {
            @Html.Partial("_ToolbarGroupButtons", group)
        }
        <li><a href="@ViewContext.RequestContext.GetRequestValue("return")">@Html.IconImage("cancel") @("Back".Localize())</a></li>
    </ul>
}
@Html.Partial("_Edit")
